//
//  LocationManager.h
//  xk100
//
//  Created by xiaokang on 2017/6/21.
//  Copyright © 2017年 xiaokang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <UIKit/UIKit.h>

/**
 *  定位block块
 *
 *  @param location  当前位置对象
 *  @param placeMark 反地理编码对象
 *  @param error     错误信息
 */
typedef void(^ResultLocationInfoBlock)(CLLocation *location, CLPlacemark *placeMark, NSString *error);

@interface LocationManager : NSObject

/**
 定位这
 */
+ (instancetype)shareInstance;



/**
 获取位置
 */
-(void)getCurrentLocationByViewController:(UIViewController *)viewController resultBlock:(ResultLocationInfoBlock)block;
@end
